package com.hqyj.fj.javaSpringBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.fj.javaSpringBoot.modules.account.entity.Resource;
import com.hqyj.fj.javaSpringBoot.modules.account.entity.Role;
import com.hqyj.fj.javaSpringBoot.modules.account.entity.User;
import com.hqyj.fj.javaSpringBoot.modules.common.entity.Result;
import com.hqyj.fj.javaSpringBoot.modules.common.entity.SearchBean;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ResourceService {

    Result<Resource> editResource(Resource resource);

    Result<Object> deleteResourceById(int id);

    Resource getResourceById(int id);

    List<Resource> getResourceByPermit(String permit);

      Page<Resource> getResourceBySearchBean(SearchBean searchBean);

     Result<Object> insertResources(List<Resource> resourceList);

    public Result<Resource> insertResource(Resource resource);

    public Result<Resource> updateResource(Resource resource);


    public List<Resource> getResourcesByRoleId(int roleId);



}
